package com.sprint.service.imp;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.sprint.service.PaymentHystrixService;
import org.springframework.stereotype.Component;

@Component
public class PaymentHystrixServiceImpl implements PaymentHystrixService {
    @Override
    public String paymentinfo_ok(Integer id) {
        return "降级处理PaymentHystrixServiceImpl + ok";
    }

    @Override
    public String paymentinfo_timeout(Integer id) {
        return "降级处理PaymentHystrixServiceImpl + timeout";
    }
}
